.class Lcom/instagram/android/service/l;
.super Landroid/os/AsyncTask;
.source "MediaService.java"

# interfaces
.implements Lcom/instagram/android/d/c/f;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "TT;>;",
        "Lcom/instagram/android/d/c/f;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/service/MediaService;

.field private final b:Lcom/instagram/j/l;

.field private c:Lcom/instagram/android/service/k;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/service/k",
            "<TT;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/instagram/android/service/MediaService;Lcom/instagram/j/l;Lcom/instagram/android/service/k;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/j/l;",
            "Lcom/instagram/android/service/k",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 138
    iput-object p1, p0, Lcom/instagram/android/service/l;->a:Lcom/instagram/android/service/MediaService;

    .line 139
    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    .line 140
    iput-object p2, p0, Lcom/instagram/android/service/l;->b:Lcom/instagram/j/l;

    .line 141
    iput-object p3, p0, Lcom/instagram/android/service/l;->c:Lcom/instagram/android/service/k;

    .line 142
    return-void
.end method


# virtual methods
.method public a()Lcom/instagram/android/d/b/a;
    .locals 1

    .prologue
    .line 184
    sget-object v0, Lcom/instagram/android/d/b/a;->a:Lcom/instagram/android/d/b/a;

    return-object v0
.end method

.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Object;
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([",
            "Ljava/lang/Void;",
            ")TT;"
        }
    .end annotation

    .prologue
    const/4 v0, 0x0

    .line 146
    invoke-static {}, Lcom/instagram/android/d/a/a;->a()Lcom/instagram/android/d/a/a;

    move-result-object v1

    .line 150
    :try_start_0
    invoke-virtual {p0}, Lcom/instagram/android/service/l;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0}, Lcom/instagram/android/service/l;->c()Lcom/instagram/android/d/b/c;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/instagram/android/d/a/a;->c(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpResponse;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    .line 155
    if-eqz v1, :cond_0

    invoke-interface {v1}, Lch/boye/httpclientandroidlib/HttpResponse;->getStatusLine()Lch/boye/httpclientandroidlib/StatusLine;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Lch/boye/httpclientandroidlib/HttpResponse;->getStatusLine()Lch/boye/httpclientandroidlib/StatusLine;

    move-result-object v2

    invoke-interface {v2}, Lch/boye/httpclientandroidlib/StatusLine;->getStatusCode()I

    move-result v2

    const/16 v3, 0xc8

    if-eq v2, v3, :cond_1

    .line 156
    :cond_0
    const-string v1, "MediaService"

    const-string v2, "Bad HTTP response"

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 160
    :goto_0
    return-object v0

    :cond_1
    iget-object v0, p0, Lcom/instagram/android/service/l;->c:Lcom/instagram/android/service/k;

    invoke-interface {v0, v1}, Lcom/instagram/android/service/k;->b(Lch/boye/httpclientandroidlib/HttpResponse;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_0

    .line 151
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public b()Ljava/lang/String;
    .locals 2

    .prologue
    .line 179
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "media/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/service/l;->b:Lcom/instagram/j/l;

    invoke-virtual {v1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/delete/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/d/i/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public c()Lcom/instagram/android/d/b/c;
    .locals 3

    .prologue
    .line 170
    new-instance v0, Lcom/instagram/android/d/b/c;

    invoke-direct {v0}, Lcom/instagram/android/d/b/c;-><init>()V

    .line 171
    const-string v1, "media_id"

    iget-object v2, p0, Lcom/instagram/android/service/l;->b:Lcom/instagram/j/l;

    invoke-virtual {v2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 172
    invoke-static {v0, p0}, Lcom/instagram/android/d/i/f;->a(Lcom/instagram/android/d/b/e;Lcom/instagram/android/d/c/f;)V

    .line 174
    invoke-static {v0}, Lcom/instagram/android/d/i/f;->a(Lcom/instagram/android/d/b/c;)Lcom/instagram/android/d/b/c;

    move-result-object v0

    return-object v0
.end method

.method public d()Z
    .locals 1

    .prologue
    .line 189
    const/4 v0, 0x1

    return v0
.end method

.method protected synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"

    .prologue
    .line 131
    .local p0, this:Lcom/instagram/android/service/l;,"Lcom/instagram/android/service/l<TT;>;"
    check-cast p1, [Ljava/lang/Void;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/instagram/android/service/l;->a([Ljava/lang/Void;)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public e()Z
    .locals 1

    .prologue
    .line 194
    const/4 v0, 0x0

    return v0
.end method

.method protected onPostExecute(Ljava/lang/Object;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation

    .prologue
    .line 165
    .local p0, this:Lcom/instagram/android/service/l;,"Lcom/instagram/android/service/l<TT;>;"
    .local p1, result:Ljava/lang/Object;,"TT;"
    iget-object v0, p0, Lcom/instagram/android/service/l;->c:Lcom/instagram/android/service/k;

    invoke-interface {v0, p1}, Lcom/instagram/android/service/k;->a(Ljava/lang/Object;)V

    .line 166
    return-void
.end method
